In this scenario the front desk count-holder represents a counting semaphore, the rooms are the resources, and the students represent processes.
2.
The counting semaphore concept can be extended with the ability to claim or return more than one " unit " from the semaphore, a technique implemented in Unix.